package com.ruoyi.common.core.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StatusData<Integer,T> {
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 响应数据
     */
    private T data;
    public StatusData<Integer,T> OK(Integer statusCode, T responseData) {
        this.code = statusCode;
        this.data = responseData;
        return this;
    }
}